//============================================================================
// Copyright (C) 2012-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================

#include "SharedFileInfo.h"
#include "SharedFilesDefs.h"

//============================================================================
SharedFileInfo::SharedFileInfo()
	: m_s64FileLen(0) 
	, m_u32Attributes(0) 
	, m_u8FileType(VXFILE_TYPE_UNKNOWN)
{ 
}

//============================================================================
//! equal operator
SharedFileInfo& SharedFileInfo::operator=(const SharedFileInfo& oInfo) 
{	
	std::string::operator =( oInfo ); 
	m_u32Attributes		= oInfo.m_u32Attributes;
	m_s64FileLen		= oInfo.m_s64FileLen;
	m_u8FileType		= oInfo.m_u8FileType;
	return *this;
}

//============================================================================
SharedFileInfo& SharedFileInfo::operator=(const std::string& str) 
{ 
	std::string::operator =(str); return *this;
}

//============================================================================
SharedFileInfo& SharedFileInfo::operator=(const char * str) 
{ 
	std::string::operator =(str); return *this;
}

//============================================================================
SharedFileInfo& SharedFileInfo::operator+=(const std::string& str) 
{ 
	std::string::operator +=(str); return *this;
}

//============================================================================
SharedFileInfo& SharedFileInfo::operator+=(const char * str) 
{ 
	std::string::operator +=(str); return *this;
}
